# CMake最低版本要求
cmake_minimum_required(VERSION 2.8)

# 指定项目名称
project(letcode104)

# 设置变量 commonFolder 为common路径
set(commonFolder ../../include/common)

# 过滤出 common 下的所有源文件 下面两种方式都可以
# file(GLOB SRC_LIST ${commonFolder}/*.cpp)
aux_source_directory(${commonFolder} SRC_LIST)
message(STATUS "SRC_LIST = ${SRC_LIST}")

set(SOURCES
    main.cpp
    ${SRC_LIST}
)

# 添加头文件 下面这种直接添加搜索路径也可以
# set(HEADERS
#     ../../include/common/utils.hpp
# )
# 添加头文件搜索路径
include_directories(${PROJECT_SOURCE_DIR}/../../include)

# add_executable(${PROJECT_NAME} ${SOURCES} ${HEADERS})
add_executable(${PROJECT_NAME} ${SOURCES})


